package com.kevin.io.bio;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;

public class BioClient {
    public static void main(String[] args) {
        Socket s = null;
        OutputStream os = null;
        try {
            s = new Socket("127.0.0.1",9999);
            os = s.getOutputStream();
            os.write("Hello Bio".getBytes());
            os.flush();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                os.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
